package com.dfbz.bigdata.modules.system.shop.order.services.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dfbz.bigdata.modules.system.shop.order.doman.UanddOrders;
import com.dfbz.bigdata.modules.system.shop.order.dto.UanddOrdersDto;
import com.dfbz.bigdata.modules.system.shop.order.mapper.UanddOrdersMapperMini;
import com.dfbz.bigdata.modules.system.shop.order.services.UanddOrdersServiceMini;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author CL
* @description 针对表【tb_uandd_orders(订单表)】的数据库操作Service实现
* @createDate 2022-09-23 16:24:44
*/
@Service
@Primary
public class UanddOrdersServiceImplMini extends ServiceImpl<UanddOrdersMapperMini, UanddOrders>
    implements UanddOrdersServiceMini {

    @Autowired
    private UanddOrdersMapperMini uanddOrdersMapper;

    @Override
    public List<UanddOrdersDto> getUanddOrderList(String udOdNum, int currentPage, int pageSizes) {
        int begin = (currentPage - 1) * pageSizes;
        List<UanddOrdersDto> uanddOrderList = uanddOrdersMapper.getUanddOrderList(udOdNum, begin, pageSizes);
        return uanddOrderList;
    }

    @Override
    public Integer getTotal() {
        return uanddOrdersMapper.getTotal();
    }
}




